home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ SFP Options 3.xpl < prev    next >
Text File  |  2001-04-12  |  2KB  |  45 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\Software Installation\Windows File Protection"
  5. "NAME"="WFP Enabled"
  6. "VERSION"="1.07"
  7. "OSVERSION"="000101"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Enable Windows File Protection (WFP)"
  11. "DESCRIPTION 1"="WFP is a system that prevents "bad" apps from changing system files. Anyway, you can disable it here. After doing so, you will need to perform a restart before this change will take effect. A message to your event log is written also when WFP is disabled."
  12. "DESCRIPTION 2"="NOTE: Once you have disabled WFP and would like to enable it again, you should first enable it here, reboot and then perform the command "SFC /SCANNOW" from a command prompt to make sure WFP is up-to-date again."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to http://www.collakesoftware.com which have found this setting. Thanks to Ojatex@aol.com for the notice."
  18.  
  19. sV1="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SFCDisable" 'DW 
  20. sV1_Val=4294967197 
  21.  
  22.  
  23. Sub Plugin_Initialize 
  24.     s=RegReadValue(sV1)
  25.  
  26.     'NOTE: this number is so BIG, you need to compare it as string...
  27.     if s<>cstr(sV1_Val) then setuielement 1,true
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  if GetUIElement(1)=true then
  35.     Call RegWriteValue(sV1,0,2)
  36.  else
  37.     Call RegWriteValue(sV1,sV1_Val,2)
  38.  end if
  39.  
  40.  Call Restart()
  41. End Sub
  42.  
  43. Sub Plugin_Terminate 
  44. End Sub
  45.